"""
 1.实现 创建  ppt的文稿
"""

# 1.导模块
from pptx import Presentation
# from pptx import Presentation 函数

# 2.实例化
pre = Presentation()

# from pptx.presentation import Presentation 类
from pptx.presentation import Presentation
pre:Presentation = pre
print(type(pre))

#3. 保存文稿
pre.save('04hello.pptx')


"""
    2. 加载ppt文稿
"""
# 1.导模块
# from pptx import Presentation

# 2.加载 已经存在的ppt文件
# pre = Presentation(pptx='04hello.pptx')

# 3.重新存储验证
# pre.save('04rehello.pptx')




